package com.java.system.mapper;

import com.java.system.entity.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaoman
 * @since 2023-07-12
 */
public interface EventMapper extends BaseMapper<Event> {

    List<Event> selectEvent();

    List<EventType> selectByTime(LocalDateTime startTime, LocalDateTime currentDateTime);

    List<ChildEvent> selectChild(LocalDateTime startTime, LocalDateTime currentDateTime);

    List<EventTime> selectTime(LocalDateTime startTime, LocalDateTime currentDateTime);

    List<EventArea> selectArea(LocalDateTime startTime, LocalDateTime currentDateTime);

    List<Event> selectCou(LocalDateTime startTime, LocalDateTime currentDateTime);

    List<ChildEvent> selectAllCount(LocalDateTime startTime, LocalDateTime currentDateTime, String type, Integer areaId);
}
